package demo.demo05.test08;

public class Static {
    private static int age;
    private double score;

    public void run() {
//想要调用非静态的方法得要new对象才可以
    }

    public static void go() {

    }

    public static void main(String[] args) {
        Static static1 = new Static();
        System.out.println(Static.age);//类名访问
//        System.out.println(Static.score);不是静态的
        System.out.println(static1.age);
        System.out.println(static1.score);

        go();
    }
}
